import request from '../request'

const Api = {
  page: '/api/admin/receipt/page',
  remove: '/api/adminfnc/fncRecpay/remove',
  removeBatch: '/api/adminfnc/fncRecpay/removeBatch',
  newlyAdded: '/api/adminfnc/fncRecpay/save',
  queryFinance: '/api/adminfnc/fncRecpay/selectById',
  editFinance: '/api/admin/receipt/save'
}
// 分页查询
export const page = params => {
  return request.request({
    url: Api.page,
    params,
    method: 'GET'
  })
}
// 删除财务收支明细
export const remove = params => {
  return request.request({
    url: Api.remove,
    params,
    method: 'DELETE'
  })
}
// 批量删除财务收支明细
export const removeBatch = params => {
  return request.request({
    url: Api.removeBatch,
    params,
    method: 'DELETE'
  })
}
// 新增财务-收支明细
export const newlyAdded = params => {
  return request.request({
    url: Api.newlyAdded,
    params,
    method: 'POST'
  })
}
// 查询财务-收支明细详情
export const queryFinance = params => {
  return request.request({
    url: Api.queryFinance,
    params,
    method: 'GET'
  })
}
// 修改财务-收支明细
export const editFinance = data => {
  return request.request({
    url: Api.editFinance,
    data,
    method: 'POST'
  })
}
